package com.cdut.logistics.service.impl.system;

import java.util.Date;
import java.util.List;

import com.cdut.logistics.model.dao.system.characDAO;
import com.cdut.logistics.model.entity.system.Character;
import com.cdut.logistics.service.interf.system.CharacService;
/**
 * 
 * @ClassName: CharacServiceImp  
 * @Description: TODO(ChraracService接口类的实现类)  
 * @author lxh
 * @date 2018年1月28日 下午2:39:12
 */
public class CharacServiceImp implements CharacService{
	characDAO dao=new characDAO();
	public boolean deleteCharac(String id) {
		boolean result=dao.deleteCharac(id);
		return result;
	}
	public Character queryCharacInfoById(String id) {
		Character character=new Character();
		character=dao.queryCharacById(id);
		return character;
	}
	public boolean addCharac(String name, String authority_id, String is_use,String active,Date created) {
		boolean result=dao.addCharac(name,authority_id, is_use,active,created);
		return result;
	}
	public boolean updateCharac(String id,String name, String authority_id,
			String is_use,Date updated) {
		boolean result=dao.updateCharac(id,name,authority_id, is_use,updated);
		return result;
	}
	@Override
	public List<Character> queryAllCharac() {
		// TODO Auto-generated method stub
		
		List<Character> character=dao.queryAllCharac();
		return character;
	}
	@Override
	public Character queryCharacInfoByName(String name) {
		// TODO Auto-generated method stub
		 
		Character character=dao.queryCharacByName(name);
		return character;
	}

	

}
